package com.erp.erp_dao.ProducFjInfo;

import com.erp.erp_entitys.ProducFjInfo.ProducFjInfoEntity;
import com.erp.erp_entitys.ProducFjInfo.ProducFjInfoExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IProductFjInfoDAO {
    long countByExample(ProducFjInfoExample example);

    int deleteByExample(ProducFjInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ProducFjInfoEntity record);

    int insertSelective(ProducFjInfoEntity record);

    List<ProducFjInfoEntity> selectByExample(ProducFjInfoExample example);

    /**
     * 精确查询规格信息
     * @param req 查詢條件
     * @return 规格信息
     */
    List<ProducFjInfoEntity> getSpecInfo(ProducFjInfoEntity req);

    ProducFjInfoEntity selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ProducFjInfoEntity record, @Param("example") ProducFjInfoExample example);

    int updateByExample(@Param("record") ProducFjInfoEntity record, @Param("example") ProducFjInfoExample example);

    int updateByPrimaryKeySelective(ProducFjInfoEntity record);

    int updateByPrimaryKey(ProducFjInfoEntity record);
}